package com.example.springbootgoods.controller;

import com.example.springbootgoods.entity.Assess;
import com.example.springbootgoods.service.AssessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/assess")
public class AssessRestController {
    @Autowired
    AssessService assessService;

    @GetMapping("/{cid}")
    public List<Assess> selectById(@PathVariable int cid){
        return  assessService.selectById(cid);
    }
}
